var e = getApp(), n = void 0;

Page({
    data: {
        msg: {},
        navigator: [ {
            icon: "/img/order.png",
            label: "提现",
            url: "/pages/runman/cash/cash?type=3"
        }, {
            icon: "/img/order.png",
            label: "提现记录",
            url: "/pages/runman/cash/recode/recode?type=3"
        } ]
    },
    onLoad: function(e) {
        (n = this).getAgent(), n.getAnlysis();
    },
    getAgent: function() {
        e.com.post("wx/agent/info", {}, function(e) {
            0 === e.errno && n.setData({
                agent: e.data
            });
        });
    },
    getAnlysis: function() {
        e.com.post("wx/agent/anlysis", {}, function(e) {
            0 === e.errno && n.setData(e.data);
        });
    },
    changePage: function() {
        wx.showModal({
            title: "提示",
            content: "您确定要切换版本吗？",
            success: function(e) {
                e.confirm && (wx.setStorageSync("page", "/pages/index/index"), wx.navigateBack({
                    delta: 1,
                    success: function() {
                        wx.redirectTo({
                            url: "/pages/index/index"
                        });
                    }
                }));
            }
        });
    }
});